﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="MVCClubSite.Web.Views.Home.Index" %>
<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
<div class="contentblock">
<div style="float:left; width:50%">
    <h2>Recent News</h2>
    <% foreach (Announcement a in ViewData.Model.Announcements)
           { %>
        
            <%= Html.ActionLink(a.Title, "Details", "Announcements", new{ id = a.ID }, null ) %>
            <br />
            <%= a.AnnouncementDate.ToLongDateString() %>
        <p>
        </p>

        <%} %>
</div>
<div style="float:left; width:25%">
    <h2>Upcoming Events</h2>
     <% foreach (Event e in ViewData.Model.UpcomingEvents)
                   { %>
                <div class="event">
                    <%= Html.ActionLink(e.Title, "Details", "Events", new{ id = e.ID }, null) %>
                    <br />
                    <%= e.StartDateTime %>
                    <br /><br />
                </div>
                <%} %>
</div>
<div style="float:left; width:25%">
    <h2>Recent Events</h2>
     <% foreach (Event e in ViewData.Model.RecentEvents)
                   { %>
                <div class="event">
                    <%= Html.ActionLink(e.Title, "Details", "Events", new{ id = e.ID }, null) %>
                    <br />
                    <%= e.StartDateTime %>
                    <br /><br />
                </div>
                <%} %>
</div>
<div class="clear"></div>

<div style="float:left; width:50%">
    <h2>Recent Threads</h2>
</div>

<div style="float:left; width:50%">
    <h2>Most Active Threads</h2>
</div>
        <div class="clear"></div>
    </div>
</asp:Content>
